package com.example.springboot.entity;

import cn.hutool.core.annotation.Alias;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("book")
public class Book {

    @TableId(type=IdType.AUTO)
    private Integer id;
    private String name;
    private String descr;
    private String content;
    private String cover;
    private Integer categoryId;
    private String author;
    private String publisher;
    private String date;
    private String isbn;
    private Integer store;
    private String isShelf;
    private String createDate;

    @TableField(exist = false)
    private Boolean isCollect;

    @TableField(exist = false)
    private Long borrowCount;
}
